package com.water.controller;

import com.water.entity.PyBalance;
import com.water.service.PyBalanceService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (PyBalance)表控制层
 *
 * @author makejava
 * @since 2020-12-22 18:39:10
 */
@RestController
@RequestMapping("pyBalance")
public class PyBalanceController {
    /**
     * 服务对象
     */
    @Resource
    private PyBalanceService pyBalanceService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PyBalance selectOne(Integer id) {
        return this.pyBalanceService.queryById(id);
    }

}